package com.jzo2o.market.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.market.model.domain.CouponIssue;
import com.jzo2o.market.model.dto.request.CouponIssueReqDTO;

import java.util.List;

/**
 * @author wanfeng
 * @version 1.0
 * @since 2025-09-20 15:44
 */
public interface ICouponIssueService extends IService<CouponIssue> {

    /**
     * 发放优惠券
     * @param couponIssueReqDTO
     * @return
     */
    List<CouponIssue> save(CouponIssueReqDTO couponIssueReqDTO);

    /**
     * 立即发放优惠券
     * @param couponIssueReqDTO
     * @return
     */
    List<CouponIssue> issue(CouponIssueReqDTO couponIssueReqDTO);

    /**
     * 自动发放优惠券
     */
    void autoIssue(Long activityId);
}
